Skip to content

Allow views to move based on keyboard even when not having first responders#335

Open
dineshflock wants to merge 2 commits intohuri000:masterfrom
talk-to:allow-keyboard-relation-for-non-responders-too
Open

Allow views to move based on keyboard even when not having first responders#335
dineshflock wants to merge 2 commits intohuri000:masterfrom
talk-to:allow-keyboard-relation-for-non-responders-too

Conversation

@dineshflock
Copy link
Copy Markdown

Goals 🥅

Currently keyboard binding only works if entry responds true for containsFirstResponder()
This PR will now allow consumers to create entries that are bound to Keyboard even when they have no first responders.

Implementation Details ✏️

Another case .bindAlways that can be used to bound an entry to Keyboards irrespective of firstResponder state.
Renamed old .bind case to .bindWhenResponder

Testing Details 🔍

Manually tested

TODO: Code as per repo conventions. Frankly I have not read the conventions. I will do once this PR seems eligible to be merged.

@codecov
Copy link
Copy Markdown

codecov bot commented Feb 4, 2021

Codecov Report

❌ Patch coverage is 0% with 23 lines in your changes missing coverage. Please review.
✅ Project coverage is 2.04%. Comparing base (cf1cde7) to head (734ebe6).
⚠️ Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
Source/Infra/EKContentView.swift 0.00% 15 Missing ⚠️
...yAttributes/EKAttributes+PositionConstraints.swift 0.00% 8 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff            @@
##           master    #335      +/-   ##
=========================================
- Coverage    2.04%   2.04%   -0.01%     
=========================================
  Files          96      96              
  Lines        5472    5489      +17     
=========================================
  Hits          112     112              
- Misses       5360    5377      +17     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@murabye
Copy link
Copy Markdown

murabye commented Oct 18, 2021

I tried this, but when entry dissmissed, it dismiss without animation :(
And if keyboard is showed before entry, entry is on the back of the keyboard
Does anybody make a fix?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants